package com.filepd.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * @author Atanycosts
 * @TableName file
 */
@TableName(value ="file")
@Data
public class File implements Serializable {
    /**
     * ID
     */
    @TableId(type = IdType.AUTO)
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Integer id;

    /**
     * user_Name
     */
    @TableField(value = "user_Name")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String userName;

    /**
     * 文件名称
     */
    @TableField(value = "file_Name")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String fileName;

    /**
     * 文件大小
     */
    @TableField(value = "file_Size")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String fileSize;

    /**
     * 文件类型
     */
    @TableField(value = "file_Type")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String fileType;

    /**
     * Hash
     */
    @TableField(value = "file_Hash")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String fileHash;

    /**
     * 创建时间
     */
    @TableField(value = "create_Time")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_Time")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Date updateTime;

    /**
     * 是否删除
     */

    @TableLogic()
    @TableField("is_Delete")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}